<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title></title>
	<link rel="stylesheet" href="">
</head>
<body>
<script>
	var rows = [
		 { Id: 1, Name: '小明', Age: 18, School: '光明小学', Remark: '三好学生' },
		 { Id: 2, Name: '小刚', Age: 20, School: '复兴中学', Remark: '优秀班干部' },
		 { Id: 3, Name: '吉姆格林', Age: 19, School: '光明小学', Remark: '吉姆做了汽车公司经理' },
		 { Id: 4, Name: '李雷', Age: 25, School: '复兴中学', Remark: '不老实的家伙' },
		 { Id: 5, Name: '韩梅梅', Age: 22, School: '光明小学', Remark: '在一起' },
		 ];
		 console.log(rows);
	function Sort(){
		var temp = null;
		for( var i=0;i<rows.length;i++ ){
			for(var j=i+1;j<=rows.length-1;j++){
				if(rows[i].Age<rows[j].Age){
					temp = rows[i];
					rows[i] = rows[j];
					rows[j] = temp;
				}
			}
		}
		return rows;
	}
</script>	
</body>
</html>